package Test;

import commander.CLI;
import core.JitAdd;
import core.JitCommit;
import core.JitInit;
import core.JitRm;

public class LogTest {
    public static void main(String[] args){
        try{
            JitInit.init("E:\\study\\java");
            System.out.println(".................分隔符..................");
            JitAdd.add("test1.txt");
            JitAdd.add("test23");
            System.out.println(".................分隔符..................");
            JitRm.rm("test1.txt");
            System.out.println("..................分隔符..................");
            JitCommit.commit("提交");
            System.out.println("..................分隔符..................");
            JitAdd.add("test4.txt");
            JitCommit.commit("第二次提交");
            System.out.println("..................分隔符..................");

            String[] str = {"jit","log"};
            CLI.jitLog(str);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
